/*
 * @(#)XfplotWindowListener.java        2003/01/01
 *
 * This file is part of Xfuzzy 3.0, a design environment for fuzzy logic
 * based systems.
 *
 * (c) 2000 IMSE-CNM. The authors may be contacted by the email address:
 *                    xfuzzy-team@imse.cnm.es
 *
 * Xfuzzy is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation.
 *
 * Xfuzzy is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

package xfuzzy.xfplot.view.listener;

import xfuzzy.xfplot.view.Xfplot;
import java.awt.event.*;

/**
 * Controlador de eventos de ventana de la herramienta Xfsl
 * 
 * @author Francisco Jos� Moreno Velo
 *
 */
public class XfplotWindowListener implements WindowListener {
		
	//----------------------------------------------------------------------------//
	//                            MIEMBROS PRIVADOS                              //
	//----------------------------------------------------------------------------//

	/**
	 * Referencia a la ventana principal de la herramienta
	 */
	private Xfplot xfplot;
	
	
	//----------------------------------------------------------------------------//
	//                                CONSTRUCTOR                                 //
	//----------------------------------------------------------------------------//
	
	/**
	 * Constructor
	 */
	public XfplotWindowListener(Xfplot xfplot) {
		this.xfplot = xfplot;
	}
	
 	//----------------------------------------------------------------------------//
	//                             M�TODOS P�BLICOS                               //
	//----------------------------------------------------------------------------//
	
	/**
	 * Interfaz WindowListener. Acci�n al abrir la ventana
	 */
	public void windowOpened(WindowEvent e) {
	}

	/**
	 * Interfaz WindowListener. Acci�n al cerrar la ventana
	 */
	public void windowClosing(WindowEvent e) {
		xfplot.close();
	}

	/**
	 * Interfaz WindowListener. Acci�n al finalizar el cierre
	 */
	public void windowClosed(WindowEvent e) {
	}

	/**
	 * Interfaz WindowListener. Acci�n al minimizar la ventana
	 */
	public void windowIconified(WindowEvent e) {
	}

	/**
	 * Interfaz WindowListener. Acci�n al maximizar la ventana
	 */
	public void windowDeiconified(WindowEvent e) {
	}

	/**
	 * Interfaz WindowListener. Acci�n al activar la ventana
	 */
	public void windowActivated(WindowEvent e) {
	}
	
	/**
	 * Interfaz WindowListener. Acci�n al desactivar la ventana
	 */
	public void windowDeactivated(WindowEvent e) {
	}
	
}
